/*
 * Interface gráfica para o menu professor.
 */
package amanda_gabriel_isabella_lucivania_monica.View;

import amanda_gabriel_isabella_lucivania_monica.Model.Dao.DaoBaseImpl;
import javax.swing.JFrame;

/**
 * Interface gráfica do login do professor
 * @author lucy
 * @param loginIG
 * @param daoBase
 */
public class LoginProfessorIG extends javax.swing.JFrame {

    /**
     * Cria um novo form LoginAlunoIG
     */
    private LoginIG telaLogin;
    private DaoBaseImpl daoBaseImpl;
    

    public LoginProfessorIG(LoginIG tela, DaoBaseImpl daoBaseImpl) {
        initComponents();
        this.telaLogin = tela;
        this.daoBaseImpl = daoBaseImpl;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem2 = new javax.swing.JMenuItem();
        jPanel1 = new javax.swing.JPanel();
        jLDesejaFazer = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLEstarLogadoComoProfessor = new javax.swing.JLabel();
        jLProfessor = new javax.swing.JLabel();
        jBRealizarLogout = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu2 = new javax.swing.JMenu();
        jMAtividadeCadastrar = new javax.swing.JMenuItem();
        jMAtividadeAlterar = new javax.swing.JMenuItem();
        jMAtividadeRemover = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMNotasLancar = new javax.swing.JMenuItem();
        jMNotasAlterar = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMFaltasLancar = new javax.swing.JMenuItem();
        jMFaltasAlterar = new javax.swing.JMenuItem();
        jMListar = new javax.swing.JMenu();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        jMConsultarDisciplinasLecionadas = new javax.swing.JMenuItem();

        jMenuItem2.setText("jMenuItem2");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Menu de opções para o professor");

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(">> Bem-Vindo  ao Sistema  de Controle Acadêmico  da  UFLN <<"));
        jPanel1.setForeground(new java.awt.Color(231, 238, 242));
        jPanel1.setToolTipText("Exemplo");

        jLDesejaFazer.setText("Escolha uma opção no menu acima.");

        jLabel7.setFont(new java.awt.Font("Ubuntu", 0, 10)); // NOI18N
        jLabel7.setText("Copyright © 2013. Todos os direitos reservados.");

        jLabel8.setFont(new java.awt.Font("Ubuntu", 0, 10)); // NOI18N
        jLabel8.setText("Discentes - Ciência da Computação - UFSJ");

        jLabel9.setFont(new java.awt.Font("Ubuntu", 0, 10)); // NOI18N
        jLabel9.setText("Desenvolvido por Amanda, Gabriel, Isabella, Lucivânia e Mônica");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator1)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(448, 448, 448))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(506, 506, 506))))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLDesejaFazer)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jLabel7)
                        .addGap(493, 493, 493))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(jLDesejaFazer)
                .addGap(458, 458, 458)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 16, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 16, Short.MAX_VALUE)
                .addGap(22, 22, 22))
        );

        jLEstarLogadoComoProfessor.setText("Atualmente você está logado como:");

        jLProfessor.setForeground(new java.awt.Color(78, 189, 78));
        jLProfessor.setText("Professor");

        jBRealizarLogout.setText("Logout");
        jBRealizarLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRealizarLogoutActionPerformed(evt);
            }
        });

        jMenuBar1.setToolTipText("");
        jMenuBar1.setName("oi"); // NOI18N

        jMenu2.setText("Atividade");

        jMAtividadeCadastrar.setText("Cadastrar");
        jMAtividadeCadastrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMAtividadeCadastrarActionPerformed(evt);
            }
        });
        jMenu2.add(jMAtividadeCadastrar);

        jMAtividadeAlterar.setText("Alterar");
        jMAtividadeAlterar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMAtividadeAlterarActionPerformed(evt);
            }
        });
        jMenu2.add(jMAtividadeAlterar);

        jMAtividadeRemover.setText("Remover");
        jMAtividadeRemover.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMAtividadeRemoverActionPerformed(evt);
            }
        });
        jMenu2.add(jMAtividadeRemover);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Notas");

        jMNotasLancar.setText("Lançar");
        jMNotasLancar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMNotasLancarActionPerformed(evt);
            }
        });
        jMenu3.add(jMNotasLancar);

        jMNotasAlterar.setText("Alterar");
        jMNotasAlterar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMNotasAlterarActionPerformed(evt);
            }
        });
        jMenu3.add(jMNotasAlterar);

        jMenuBar1.add(jMenu3);

        jMenu4.setText("Faltas");

        jMFaltasLancar.setText("Lançar");
        jMFaltasLancar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMFaltasLancarActionPerformed(evt);
            }
        });
        jMenu4.add(jMFaltasLancar);

        jMFaltasAlterar.setText("Alterar");
        jMFaltasAlterar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMFaltasAlterarActionPerformed(evt);
            }
        });
        jMenu4.add(jMFaltasAlterar);

        jMenuBar1.add(jMenu4);

        jMListar.setText("Listar");

        jMenuItem9.setText("Alunos de uma turma");
        jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
        jMListar.add(jMenuItem9);

        jMenuBar1.add(jMListar);

        jMenu6.setText("Consultas");

        jMConsultarDisciplinasLecionadas.setText("Disciplinas já lecionadas");
        jMConsultarDisciplinasLecionadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMConsultarDisciplinasLecionadasActionPerformed(evt);
            }
        });
        jMenu6.add(jMConsultarDisciplinasLecionadas);

        jMenuBar1.add(jMenu6);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 648, Short.MAX_VALUE)
                        .addComponent(jLEstarLogadoComoProfessor)
                        .addGap(29, 29, 29)
                        .addComponent(jLProfessor)
                        .addGap(19, 19, 19)
                        .addComponent(jBRealizarLogout, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(43, 43, 43))
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLEstarLogadoComoProfessor)
                    .addComponent(jLProfessor)
                    .addComponent(jBRealizarLogout))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBRealizarLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRealizarLogoutActionPerformed
        setVisible(false);
        telaLogin.setVisible(true);
    }//GEN-LAST:event_jBRealizarLogoutActionPerformed

    private void jMAtividadeCadastrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMAtividadeCadastrarActionPerformed
        CadastrarAtividadeIG cadastrarAtividadeIG = new CadastrarAtividadeIG(daoBaseImpl);
        cadastrarAtividadeIG.setVisible(true);
    }//GEN-LAST:event_jMAtividadeCadastrarActionPerformed

    private void jMAtividadeAlterarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMAtividadeAlterarActionPerformed
        EditarAtividadeIG editarAtividadeIG = new EditarAtividadeIG(daoBaseImpl);
        editarAtividadeIG.setVisible(true);
    }//GEN-LAST:event_jMAtividadeAlterarActionPerformed

    private void jMNotasLancarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMNotasLancarActionPerformed
        LancarNotaIG lancarNota = new LancarNotaIG(daoBaseImpl);
        lancarNota.setVisible(true);
    }//GEN-LAST:event_jMNotasLancarActionPerformed

    private void jMNotasAlterarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMNotasAlterarActionPerformed
        EditarNotaIG editarNota = new EditarNotaIG(daoBaseImpl);
        editarNota.setVisible(true);
    }//GEN-LAST:event_jMNotasAlterarActionPerformed

    private void jMFaltasLancarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMFaltasLancarActionPerformed
        LancarFaltasIG lancarFaltas = new LancarFaltasIG(daoBaseImpl);
        lancarFaltas.setVisible(true);
    }//GEN-LAST:event_jMFaltasLancarActionPerformed

    private void jMFaltasAlterarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMFaltasAlterarActionPerformed
        EditarFaltasIG editarFaltas = new EditarFaltasIG(daoBaseImpl);
        editarFaltas.setVisible(true);
    }//GEN-LAST:event_jMFaltasAlterarActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed
        ListarAlunosDaTurmaIG listarAlunosDaTurma = new ListarAlunosDaTurmaIG(daoBaseImpl);
        listarAlunosDaTurma.setVisible(true);
    }//GEN-LAST:event_jMenuItem9ActionPerformed

    private void jMConsultarDisciplinasLecionadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMConsultarDisciplinasLecionadasActionPerformed
        ConsultarDisciplinasLecionadasIG consulta = new ConsultarDisciplinasLecionadasIG(daoBaseImpl);
        consulta.setVisible(true);
    }//GEN-LAST:event_jMConsultarDisciplinasLecionadasActionPerformed

    private void jMAtividadeRemoverActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMAtividadeRemoverActionPerformed
        RemoverAtividadeIG removerAtividade = new RemoverAtividadeIG(daoBaseImpl);
        removerAtividade.setVisible(true);
    }//GEN-LAST:event_jMAtividadeRemoverActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBRealizarLogout;
    private javax.swing.JLabel jLDesejaFazer;
    private javax.swing.JLabel jLEstarLogadoComoProfessor;
    private javax.swing.JLabel jLProfessor;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenuItem jMAtividadeAlterar;
    private javax.swing.JMenuItem jMAtividadeCadastrar;
    private javax.swing.JMenuItem jMAtividadeRemover;
    private javax.swing.JMenuItem jMConsultarDisciplinasLecionadas;
    private javax.swing.JMenuItem jMFaltasAlterar;
    private javax.swing.JMenuItem jMFaltasLancar;
    private javax.swing.JMenu jMListar;
    private javax.swing.JMenuItem jMNotasAlterar;
    private javax.swing.JMenuItem jMNotasLancar;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSeparator jSeparator1;
    // End of variables declaration//GEN-END:variables
}
